package cn.lizemin.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author: lizemin
 * @version: 1.0
 * 自定义注解
 */
@Retention(value = RetentionPolicy.RUNTIME)
//@Target(value = {ElementType.METHOD,ElementType.FIELD,ElementType.TYPE})
public @interface MyAnnotation {
    //下面是抽象方法
    String getValue() default "no definition";
    int getNum();

}
